<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class selectionmodule extends CI_Controller {
    
        public function selection_module(){
                
                // Connexion Base de Donnees
                $dbconnect = $this->load->database();
                
                // Chargement du modele
                $this->load->Model('selectionmoduleModel');
                $this->selectionmoduleModel->setNommodule(); 
                $this->selectionmoduleModel->getListemodule(); 
                $this->template->set('title', 'Selectionmodule');
                $this->template->set('messageContents', '<div class="Selectionmodule"><div>');

                $listemodule = $this->selectionmoduleModel->getData();
        }     
             

        public function index()
	{     
		$this->template->set('title', 'Selectionmodule');
         	$this->template->set('messageContents', '<div></div>');
               // $this->template->load('layout','Selectionmodule');
        	   if (Isset($_POST['Listemodule']) == false)
		{
			$view = 'selectionmodule';
		}
		else
		{  
			$view = 'Evaluation_1';
      
                }
                $this->template->set('title', 'selectionmodule');
		$this->template->set('messageContents', '');
                
              //  $this->template->load('layout', $view$this->selectionmoduleModel->getData());   

                $this->template->load('layout',$view);
    }
}
?>